package com.snfdf.camunda.service;

import lombok.extern.slf4j.Slf4j;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;

@Slf4j
public class ReserveRepairService implements JavaDelegate {

    @Override
    public void execute(DelegateExecution execution) {
        log.info("进入到预约家电修理任务");
        String currentActivityName = execution.getCurrentActivityName();
        String processDefinitionId = execution.getProcessDefinitionId();
        log.info("当前活动名称：{}，流程定义id：{}", currentActivityName, processDefinitionId);
    }
}
